#pragma once
#include "ResourceDownloaderTask.h"
#include "SiteProcessorTask.h"
#include "EmailSenderTask.h"
#include "CleanerTask.h"

enum SCHEDULER_STATE
{
    STATE_INITED        =  0x00,
    STATE_STARTED       =  0x01,
    STATE_STOPED        =  0x02,
};

class Scheduler
{
public:
    Scheduler(void);
    ~Scheduler(void);
    void Init();
    void Start();
    void Stop();
    SCHEDULER_STATE GetState();
private:
    ResourceDownloaderTask rsdTask;
    SiteProcessorTask spTask;
    EmailSenderTask esTask;
    CleanerTask clrTask;
    SCHEDULER_STATE state;
};
